#include "DGameEngine.h"

DGameEngine::DGameEngine(void)
{
}

DGameEngine::~DGameEngine(void)
{
}

bool DGameEngine::RequestStateChange(char* newState) {
	strcpy(m_LastStateName, m_CurrStateName);
	if(m_CurrState) delete m_CurrState;
	m_CurrState = NULL;

	if(strcmp(newState, "GS_MENU") == 0
		|| strcmp(newState, "VIDEO_CONFIG_EXIT") == 0
	) {
		strcpy(m_CurrStateName, newState);
		m_CurrState = new gs_Menu(this);
		return true;
	}
	if(strcmp(newState, "GS_MAIN") == 0 )
	{
        strcpy(m_CurrStateName, newState);
        m_CurrState = new gs_Main(this);
        return true;
    }
	return ICEFrameworkEngine::RequestStateChange(newState);
}

